package com.gmt;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author John.zhang
 * @version Id: HelloController, v 1.0 2020/11/17 14:26 ZhiYong Exp $
 */

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String sayHello(){
        //通过启动多个服务来测试负载均衡
        System.out.println("收到请求");
        return "Hello World";
    }

}

